package luj.groovy.excel.internal.table.create


import luj.groovy.excel.api.table.build.TableBuilder
import org.apache.poi.ss.usermodel.Sheet
import org.apache.poi.ss.util.CellReference

class BuildHeaderImpl implements TableBuilder.Header {

  @Override
  TableBuilder.Header startCell(String ref) {
    def refObj = new CellReference(ref)
    _startRow = refObj.row
    _startCol = refObj.col
    return this
  }

  @Override
  TableBuilder.Header rowSize(int size) {
    _rowSize = size
    return this
  }

  Sheet _sheet

  int _startRow
  int _startCol

  int _rowSize
}
